const Router = require("koa-router");
const goodsController = require("../controller/orders");

let orders = new Router();
// 获取数据
orders.post("/getSaleorders", goodsController.getSaleOrdersData);
orders.post("/getBuyorders", goodsController.getBuyOrdersData);
// 插入数据
orders.post("/add", goodsController.addOrders);
// 删除数据
orders.post("/batchDelete", goodsController.batchDeteleOrders);

module.exports = orders;
